package com.test.project.system.dajuan.domain;

import com.test.framework.aspectj.lang.annotation.Excel;
import com.test.framework.web.domain.BaseEntity;
import com.test.project.system.user.domain.User;
import com.test.project.system.wenjuan.domain.TWenjuan;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户问卷对象 t_dajuan
 * 
 * @author test
 * @date 2023-12-05
 */
public class TDajuan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 问卷 */
    @Excel(name = "问卷")
    private Long wenjuanId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;
    
    private TWenjuan wenjuan;
    
    private User user;
    
    private Double score;
    
    private Integer rank;
    
    
    

    public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public Double getScore() {
		if(score == null) {
			return 0.0;
		}
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public TWenjuan getWenjuan() {
		return wenjuan;
	}

	public void setWenjuan(TWenjuan wenjuan) {
		this.wenjuan = wenjuan;
	}

	public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setWenjuanId(Long wenjuanId)
    {
        this.wenjuanId = wenjuanId;
    }

    public Long getWenjuanId()
    {
        return wenjuanId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("wenjuanId", getWenjuanId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
